/**
 * @author Ahammer
 * @date 2009 06
 */

/*
 * This file is part of Iqm.
 * Copyright (c) 2010-2011 Helmut Ahammer
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package opjai;

import java.awt.RenderingHints;
import java.awt.image.Raster;
import java.awt.image.RenderedImage;
import javax.media.jai.ImageLayout;
import javax.media.jai.PointOpImage;


/**
 * This is the image processing class
 */
public class IqmSmoothOpImage extends PointOpImage {
	
  private RenderedImage ri;
  private int method;
  private int kernelSize;
  
 /**
  * 
  * @param RenderedImage source image
  * @param options
  * @param layout image layout
  * @param hints rendering hints 
  * @param b 
  */
  public IqmSmoothOpImage(RenderedImage ri, int method, int kernelSize,
		  										ImageLayout layout, RenderingHints hints, boolean b) {
    super(ri,layout,hints,b);
    this.ri = ri;
    this.method = method;
    this.kernelSize = kernelSize;
  }
  
 /**
  * This method computes a tile
  */
  public Raster computeTile(int x, int y){

	Raster r = this.ri.getTile(x,y);
	return r; 	
  	}
}
